<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Apply
 *
 * @ORM\Table(name="apply", options={"comment":"培训报名表"})
 * @ORM\Entity
 */
class Apply
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Admin")
     * @ORM\JoinColumn(name="admin_id", referencedColumnName="id", nullable=true)
     */
    private $admin;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\District")
     * @ORM\JoinColumn(name="district_id", referencedColumnName="id", nullable=true)
     */
    private $district;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\User")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true)
     */
    private $user;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Training")
     * @ORM\JoinColumn(name="training_id", referencedColumnName="id", nullable=true)
     */
    private $training;

    /**
     * @var string
     *
     * @ORM\Column(name="company_name", type="string", length=255, options={"default":"", "comment":"公司名称"})
     */
    private $companyName;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=12, options={"default":"", "comment":"姓名"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="position_name", type="string", length=30, options={"default":"", "comment":"职位"})
     */
    private $positionName;

    /**
     * @var string
     *
     * @ORM\Column(name="phone", type="string", length=255, nullable=true, options={"default":"", "comment":"手机号码"})
     */
    private $phone;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

}
